import {defineStore} from 'pinia'
import {ref} from 'vue'

export const useStudentNameStore = defineStore('studentName',()=>{
    const studentName = ref('')

    const setStudentName = (newStudentName)=>{
        studentName.value = newStudentName
    }

    const removeStudentName = ()=>{
        studentName.value = ''
    }

    return{
        studentName,setStudentName,removeStudentName
    }
},{
    persist:true
});
